<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>补货明细</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="338435265">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "338435265";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("replenishment.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建补货明细"
  			,"inport":"导入补货明细"
  			,"update":"修改补货明细"
  			,"detail":"补货明细详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#replenishmentForm").form({
		"":function(){}
		,"replenishment.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenishment.replenish":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenishment.remarks":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "备注不能为空";
			}
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "备注最大长度为256个字符";
		}
		,"replenishment.attribute":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "规格属性最大长度为32个字符";
		}
		,"replenishment.company":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "单位最大长度为32个字符";
		}
		,"replenishment.count":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"replenishment.matchOut":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"replenishment.owe":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"replenishment.commodity":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"replenishment.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"replenishment.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"replenishment.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="Replenishment" id="replenishmentForm" name="replenishmentForm" target="jsoniframe" action="replenishment.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写补货明细相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{replenishment$id}}">
				{{replenishment$id}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$id}}">
			<input type="hidden" value="{{lz.htm(replenishment.id)}}" name="replenishment.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{replenishment.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.id$||replenishment.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("replenish_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"replenish"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"replenish"))))}}
	{{lz.set("replenish_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$replenish}}
	<dl lz:if="{{replenish_editable||replenish_readonly}}" class="replenish  " major  ref="replenish">
		<dt>补货信息:</dt>
		<dd lz:if="{{replenish_editable}}" input="query">
			<lz:block lz:if="{{replenishment$replenish}}">
				{{replenishment$replenish}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$replenish}}">
		 			<input title="请输入配送商补货物流单号进行查询" class="combox narrow" action="/admin/delivery/replenish.query.do?value={param}" type="text" id="replenish" name="replenishment.replenish" text="{{lz.html(replenishment.replenish$||replenishment.replenish)}}" value="{{lz.htm(replenishment.replenish)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#replenish').val())==''){return;};window.href('/admin/delivery/replenish.detail.html?key='+$('#replenish').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{replenish_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="replenish">{{replenishment.replenish}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/delivery/replenish.details.html?key=replenishment.replenish}')">
			 {{lz.html(replenishment.replenish$||replenishment.replenish)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$replenish}}
	{{lz.set("remarks_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"remarks"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"remarks"))))}}
	{{lz.set("remarks_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$remarks}}
	<dl lz:if="{{remarks_editable||remarks_readonly}}" class="remarks   wider" major  ref="remarks">
		<dt>备　　注:</dt>
		<dd lz:if="{{remarks_editable}}" input="textarea">
			<lz:block lz:if="{{replenishment$remarks}}">
				{{replenishment$remarks}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$remarks}}">
		 	<textarea class="input wide"  id="remarks" name="replenishment.remarks" rows="5">{{replenishment.remarks}}</textarea>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入补货明细的备注</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{remarks_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(replenishment.remarks$||replenishment.remarks)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$remarks}}
	{{lz.set("attribute_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"attribute"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"attribute"))))}}
	{{lz.set("attribute_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$attribute}}
	<dl lz:if="{{attribute_editable||attribute_readonly}}" class="ribs attribute  " major  ref="attribute">
		<dt>规格属性:</dt>
		<dd lz:if="{{attribute_editable}}" input="text">
			<lz:block lz:if="{{replenishment$attribute}}">
				{{replenishment$attribute}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$attribute}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="replenishment.attribute" id="attribute"  value="{{lz.htm(replenishment.attribute)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入补货明细的规格属性</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{attribute_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="attribute">{{replenishment.attribute}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.attribute$||replenishment.attribute)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$attribute}}
	{{lz.set("company_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"company"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"company"))))}}
	{{lz.set("company_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$company}}
	<dl lz:if="{{company_editable||company_readonly}}" class="ribs company  " major  ref="company">
		<dt>单　　位:</dt>
		<dd lz:if="{{company_editable}}" input="text">
			<lz:block lz:if="{{replenishment$company}}">
				{{replenishment$company}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$company}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="replenishment.company" id="company"  value="{{lz.htm(replenishment.company)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>商品单位</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{company_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="company">{{replenishment.company}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.company$||replenishment.company)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$company}}
	{{lz.set("count_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"count"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"count"))))}}
	{{lz.set("count_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$count}}
	<dl lz:if="{{count_editable||count_readonly}}" class="ribs count  " major  ref="count">
		<dt>已 补 货:</dt>
		<dd lz:if="{{count_editable}}" input="number">
			<lz:block lz:if="{{replenishment$count}}">
				{{replenishment$count}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$count}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="replenishment.count" id="count"  value="{{lz.htm(replenishment.count)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入补货明细的已补货</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{count_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="count">{{replenishment.count}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.count$||replenishment.count)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$count}}
	{{lz.set("matchOut_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"matchOut"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"matchOut"))))}}
	{{lz.set("matchOut_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$matchOut}}
	<dl lz:if="{{matchOut_editable||matchOut_readonly}}" class="ribs matchOut  " major  ref="matchOut">
		<dt>已 配 出:</dt>
		<dd lz:if="{{matchOut_editable}}" input="number">
			<lz:block lz:if="{{replenishment$matchOut}}">
				{{replenishment$matchOut}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$matchOut}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="replenishment.matchOut" id="matchOut"  value="{{lz.htm(replenishment.matchOut)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入补货明细的已配出</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{matchOut_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="matchOut">{{replenishment.matchOut}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.matchOut$||replenishment.matchOut)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$matchOut}}
	{{lz.set("owe_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"owe"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"owe"))))}}
	{{lz.set("owe_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$owe}}
	<dl lz:if="{{owe_editable||owe_readonly}}" class="ribs owe  " major  ref="owe">
		<dt>还　　欠:</dt>
		<dd lz:if="{{owe_editable}}" input="number">
			<lz:block lz:if="{{replenishment$owe}}">
				{{replenishment$owe}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$owe}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="replenishment.owe" id="owe"  value="{{lz.htm(replenishment.owe)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入补货明细的还欠</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{owe_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="owe">{{replenishment.owe}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.owe$||replenishment.owe)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$owe}}
	{{lz.set("commodity_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"commodity"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"commodity"))))}}
	{{lz.set("commodity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$commodity}}
	<dl lz:if="{{commodity_editable||commodity_readonly}}" class="commodity  " major  ref="commodity">
		<dt>补货商品:</dt>
		<dd lz:if="{{commodity_editable}}" input="query">
			<lz:block lz:if="{{replenishment$commodity}}">
				{{replenishment$commodity}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$commodity}}">
		 			<input title="请输入商品信息商品名称进行查询" class="combox narrow" action="/admin/goods/commodity.query.do?value={param}" type="text" id="commodity" name="replenishment.commodity" text="{{lz.html(replenishment.commodity$||replenishment.commodity)}}" value="{{lz.htm(replenishment.commodity)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#commodity').val())==''){return;};window.href('/admin/goods/commodity.detail.html?key='+$('#commodity').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{commodity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="commodity">{{replenishment.commodity}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/commodity.details.html?key=replenishment.commodity}')">
			 {{lz.html(replenishment.commodity$||replenishment.commodity)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$commodity}}
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{replenishment$updateTime}}">
				{{replenishment$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="replenishment.updateTime" id="updateTime"  value="{{replenishment.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择补货明细的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{replenishment.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.updateTime$||replenishment.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{replenishment$addTime}}">
				{{replenishment$addTime}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="replenishment.addTime" id="addTime"  value="{{replenishment.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择补货明细的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{replenishment.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.addTime$||replenishment.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{replenishment$status}}">
				{{replenishment$status}}
			</lz:block>
			<lz:block lz:if="{{!replenishment$status}}">
		 	<select class="narrow" id="status" name="replenishment.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{replenishment.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{replenishment.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择补货明细的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{replenishment.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(replenishment.status$||replenishment.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{replenishment.id}}" name="replenishment.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/delivery/replenishment.edit.html?edittype=update&id={{replenishment.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/delivery/replenishment.edit.html",document.title,"/admin//images/icons/Badge-tick.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/delivery/replenishment.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>